package com.css.zfzx.sjcj.modules.hddcGeomorphySvyLine.repository;

import com.css.zfzx.sjcj.modules.hddcGeomorphySvyLine.repository.entity.HddcGeomorphysvylineEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author zyb
 * @date 2020-11-27
 */
public interface HddcGeomorphysvylineRepository extends JpaRepository<HddcGeomorphysvylineEntity, String> {
    @Query(nativeQuery = true,value="select w.* from hddc_geomorphysvyline  w where w.id=?1 and w.is_valid=1")
    HddcGeomorphysvylineEntity findbyId(String id);

    HddcGeomorphysvylineEntity findByUuidAndIsValid(String id, String isValid);
}
